package com.kaifamiao.demo.d0726;

public class Demo01 {


    public static void main(String[] args) {

        Person you = new Person();
        you.name = "*雪";
        you.age = 22;
        you.gender = '女';
        you.hasMeta = false;


        Person other = new Person();
        other.name = "胡歌";
        other.age = 25;
        other.gender = '男';
        other.hasMeta = true;

        if (you.canNext(other)){
            System.out.println("这事能成");
        } else {
            System.out.println("你反对这门亲事!");
        }
    }

}
